<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru">
<head>
    <title>{% block title %}Cake Panel: login{% endblock %}</title>
</head>
<body>
    <div class="login">

    {% block header %}<h4>Login in Cake Panel</h4>{% endblock %}

    <form action='.' method='post'>
	{% csrf_token %}
    <table class="login_form">
        <tr>
            <td>
                <label for="username">login:</label>
            </td><td>
                <input type="text" name="username" value="" id="username">
            </td>
        </tr>
        <tr>
            <td>
                <label for="password">password:</label>
            </td><td>
                <input type="password" name="password" value="" id="password">
            </td>
        </tr>
        <tr>
            <td>
                <input type="submit" value="login" />
                <input type="hidden" name="next" value="/hosts" />
            </td>
        </tr>
    </table>
    
    </form>

    {% if form.errors %}
        <p class="error">login or password incorrect</p>
    {% endif %}
  </div>
</body>
</html>
